package com.wande.dataplatform.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.wande.common.tenant.core.TenantEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * Doris分区信息对象 dp_doris_partition
 *
 * @author dataplatform
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("dp_doris_partition")
public class DorisPartition extends TenantEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 存储表ID
     */
    private Long storageId;

    /**
     * 分区名称
     */
    private String partitionName;

    /**
     * 分区类型(RANGE/LIST)
     */
    private String partitionType;

    /**
     * 分区值
     */
    private String partitionValue;

    /**
     * 分区行数
     */
    private Long rowCount;

    /**
     * 分区大小(字节)
     */
    private Long dataSize;
}
